package com.deepocean.dao;

import com.deepocean.entity.FloatationInAndOut1Hour;
import com.deepocean.entity.FloatationMachineCondition;
import com.deepocean.entity.FloatationMachineEntity;
import com.deepocean.entity.process.FloatationMachineProcessEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 浮选机
 */
@Mapper
public interface FloatationDao {
    /**
     * 离心机增加记录
     * @param floatationMachineEntity
     * @return
     */
    boolean add(FloatationMachineEntity floatationMachineEntity);

    /**
     * 当前时间开始，进一小时数据总和
     * @param deviceId
     * @return
     */
    FloatationInAndOut1Hour getInAndOutInHour(String deviceId);

    /**
     * 条件查询
     * @param floatationMachineCondition
     * @return
     */
    List<FloatationMachineEntity> getFloatationByCondition(FloatationMachineCondition floatationMachineCondition);

    boolean addProcess(FloatationMachineProcessEntity floatationMachineProcessEntity);
}
